function CalendarServer() {
var self = new Gio.DBusProxy({ g_connection: Gio.DBus.session,
- g_interface_name: CalendarServerInfo.name,
- g_interface_info: CalendarServerInfo,
- g_name: 'org.gnome.Shell.CalendarServer',
- g_object_path: '/org/gnome/Shell/CalendarServer',
- g_flags: (Gio.DBusProxyFlags.DO_NOT_AUTO_START |
- Gio.DBusProxyFlags.DO_NOT_LOAD_PROPERTIES) });
+ g_interface_name: CalendarServerInfo.name,
+ g_interface_info: CalendarServerInfo,
+ g_name: 'org.gnome.Shell.CalendarServer',
+ g_object_path: '/org/gnome/Shell/CalendarServer',
+ g_flags: Gio.DBusProxyFlags.DO_NOT_LOAD_PROPERTIES });
self.init(null);
return self;
let background = null;
function createUserSession() {
- // Load the calendar server. Note that we are careful about
- // not loading any events until the user presses the clock
- global.launch_calendar_server();
-
telepathyClient = new TelepathyClient.Client();
automountManager = new AutomountManager.AutomountManager();
autorunManager = new AutorunManager.AutorunManager();
return FALSE;
}
-/**
- * shell_global_launch_calendar_server:
- * @global: The #ShellGlobal.
- *
- * Launch the gnome-shell-calendar-server helper.
- */
-void
-shell_global_launch_calendar_server (ShellGlobal *global)
-{
- const gchar *bin_dir;
- gchar *calendar_server_exe;
- GError *error;
- gchar *argv[2];
- gint child_standard_input;
-
- /* launch calendar-server */
- bin_dir = g_getenv ("GNOME_SHELL_BINDIR");
- if (bin_dir != NULL)
- calendar_server_exe = g_strdup_printf ("%s/gnome-shell-calendar-server", bin_dir);
- else
- calendar_server_exe = g_strdup_printf (GNOME_SHELL_LIBEXECDIR "/gnome-shell-calendar-server");
-
- argv[0] = calendar_server_exe;
- argv[1] = NULL;
- error = NULL;
- if (!g_spawn_async_with_pipes (NULL, /* working_directory */
- argv,
- NULL, /* envp */
- 0, /* GSpawnFlags */
- NULL, /* child_setup */
- NULL, /* user_data */
- NULL, /* GPid *child_pid */
- &child_standard_input,
- NULL, /* gint *stdout */
- NULL, /* gint *stderr */
- &error))
- {
- g_warning ("Error launching `%s': %s (%s %d)",
- calendar_server_exe,
- error->message,
- g_quark_to_string (error->domain),
- error->code);
- g_error_free (error);
- }
- /* Note that gnome-shell-calendar-server exits whenever its stdin
- * file descriptor is HUP'ed. This means that whenever the the shell
- * process exits or is being replaced, the calendar server is also
- * exits...and if the shell is being replaced, a new copy of the
- * calendar server is launched...
- */
-
- g_free (calendar_server_exe);
-}
-
const char *
shell_global_get_session_mode (ShellGlobal *global)
{